Skip to content
  • 0 Votes
    1 Posts
    191 Views
    No one has replied
  • 0 Votes
    2 Posts
    721 Views
    timdayT

    @Calvin-Richerd

    On OS I'm familiar with, the OS's notion of "fullscreen" means "full screen" and not "full desktop". However you can fudge a multi-window full-desktop window by digging into desktop geometry via http://doc.qt.io/qt-5/qdesktopwidget.html and creating a sufficiently large borderless window. Not sure how things work these days but it used to be that even if the screens had their own GPUs, all of an application's rendering would be done by one screen's GPU, and then that would be copied to the other screens. If performance is important it maybe better to create a multi-window application with a window on each screen.

    Couple of ways of doing this:
    a. Render the window to some offscreen framebuffer, then do 2 copies of the rectangles on either side of the wrap line to the appropriate parts of the actual screen. ie if your framebuffer contains [ABCDEF] but it's rotated 2 characters then you'd copy [CDEF] to the left of the screen and [AB] to the right to get [CDEFAB].
    b. Create an application which actually has content [ABCDEFABCDEF] and then just display the right subregion so it looks like its wrapped if you display [CDEFAB]. If the user goes off one end or the other just completely jump to the other end.

    Not sure how applicable these ideas are to QML apps though. You can do quite a bit of messing with rendering using ShaderEffect, but that doesn't help route mouse events to the right place in a displaced "underlying" layout.

  • 0 Votes
    5 Posts
    8k Views
    kshegunovK

    Hello @ronyNS,

    My problem is when my window is of normal size, the widget is at the right side , but when i maximize my window my widget stays in the same position on the screen .

    Your main window's central widget has no layout, so your widget is just floating around. Set a layout for the central widget, set the size policy of the widget to Fixed in the designer (the property pane when you select the widget) and set the sizes of the widget in the designer (again the property pane on the right).

    Look up this thread, the docs on the layouts management and if you want the examples.

    Kind regards.

  • 0 Votes
    8 Posts
    6k Views
    mrjjM

    @M4RZB4Ni
    Hi its all in here
    http://doc.qt.io/qt-5/qscrollbar.html#details
    But connecting to a random widget will do nothing.

    IF u have this case,
    user click on Tab
    In tab there are many widget so he need to scroll to see last of them, then u just use
    a scroll area and put all stuff inside. then it will just work. ScrollArea have scrollbars.
    U can control if both horz and vert or just horz.

  • 0 Votes
    2 Posts
    2k Views
    SGaistS

    Hi and welcome to devnet,

    Looks like QScrollArea might be of interest in your case.

    Hope it helps